package com.fare.taluo.core.domain.analyse.monitor.impl;

import java.util.ArrayList;
import java.util.List;

import com.dayatang.hibernate.EntityRepositoryHibernate;
import com.fare.taluo.core.domain.analyse.monitor.FreightMonitorSettingsEntity;
import com.fare.taluo.core.domain.analyse.monitor.FreightMonitorShowsEntityRepository;

public class FreightMonitorShowsEntityRepositoryImpl extends EntityRepositoryHibernate implements FreightMonitorShowsEntityRepository{
	//初始化页面
		@Override
		public List<FreightMonitorSettingsEntity> findFreightMonitorAlls(){
			List<Object> list = new ArrayList<Object>();
			StringBuffer sbf = new StringBuffer("from FreightMonitorSettingsEntity fm where 1=1");
				sbf.append(" order by fm.opDate desc");
				List<FreightMonitorSettingsEntity> lists =super.find(sbf.toString(),list.toArray(),FreightMonitorSettingsEntity.class);
			
			return lists;
		}

		@Override
		public List<FreightMonitorSettingsEntity> findByLine(Long id) {
			// TODO Auto-generated method stub
			return null;
		}
}
